<?php
class Zend_View_Helper_EventCategorys {
	public $view;
	public function eventCategorys() {
		$category = new Model_Category_Event();
		$categorys = $category->getAll();
		$html = '<div class="asid-bh">
					<div class="bsid1">
						<ul class="sidebar-nav">';
		foreach($categorys as $category)
		{
			$html .= '<li><a href="/event/index/id/'.$category->id.'">'.$category->name.'</a> <a href="/category/edit/item/event/id/'.$category->id.'">ред</a> <strong><span>25</span></strong></li>';
		}
		$form = new Form_Category();
		$form->setAction('/category/add/item/event/');
		$html .= $form;
		$html.= '	</ul>
					</div>';
		
		return $html;
	}
	
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
	}
}

